# -*- coding: UTF-8 -*-
import MySQLdb

def getDb():
    connection = MySQLdb.connect(host="127.0.0.1", user="root", passwd="root", db="back_prd")
    return connection

def closeDb(connection):
    connection.close()
    


connection=getDb()
closeDb(connection)


